﻿@model GameSchoolWeb.Models.Assignment
<div id="templatemo_content">
    @{
        ViewBag.Title = "Setja inn verkefni";
    }
    <div class="templatemo_box">
        <h2>
            Setja inn verkefni</h2>
        <div class="body">
            <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
            <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
            @using (Html.BeginForm())
            {
                @Html.ValidationSummary(true)

                <div class="editor-label">
                    Titill :
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.strTitle)
                    @Html.ValidationMessageFor(model => model.strTitle)
                </div>
                <div class="editor-label">
                    Lýsing
                </div>
                <div class="editor-field">
                    @Html.TextAreaFor(model => model.strAssignmentDescription)
                    @Html.ValidationMessageFor(model => model.strAssignmentDescription)
                </div>
                <div class="editor-label">
                    Fjöldi Mögulegra stiga :
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.strValue)
                    @Html.ValidationMessageFor(model => model.strValue)
                </div>

                <p>
                    <input type="submit" value="Skrá" />
                </p>
            }
            <div>
                @Html.ActionLink("Aftur á forsíðu", "Index", "Home")
            </div>
        </div>
        <div class="box_bottom">
            <span></span>
        </div>
    </div>
</div>
